<template>
  <div>
    <el-descriptions class="margin-top" title="使用指南信息" :column="3" :size="size"
                     style="width: 90%;margin: auto;padding-top: 20px" border>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-user"></i>
          标题
        </template>
        {{formData.title}}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-mobile-phone"></i>
          排序
        </template>
        {{formData.sort}}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-tickets"></i>
          备注信息
        </template>
        {{formData.remark}}
      </el-descriptions-item>
      <el-descriptions-item>
        <template slot="label">
          <i class="el-icon-office-building"></i>
          内容
        </template>
        <div v-html="formData.content" style="text-align: left;margin-left: 35px">
          {{this.formData.content}}
        </div>
      </el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
import {getGuide} from "@/api/scp/guide";
export default {
  name: "open",
  data(){
    return{
      formData:{}
    }
  },
  created() {
    var guideId = this.$route.query.guideId;
    this.init(guideId);
  },
  methods:{
    init(guideId){
      getGuide(guideId).then(response => {
        this.formData = response.data;
      });
    }
  }
}
</script>

<style scoped>

</style>
